package com.example.dubbo.provider.service;

import com.alibaba.dubbo.config.annotation.Service;
import com.alibaba.fastjson.JSONObject;
import com.example.dubbo.api.service.UserService;

/**
 * @author xyh
 * @date 2021/7/5 15:39
 */
@Service
public class UserServiceImpl implements UserService {

    @Override
    public Object getUserName(Long id) {
        JSONObject json = new JSONObject();
        json.put("name","我的名字叫");
        json.put("sex","男");
        json.put("age",10);
        return json;
    }
}
